package com.xbongbong.workflow.pojo.changerecord;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Map;

/**
 * @author shen.yang
 * @version v1.0
 * @Description
 * @date 2022/9/23 15:02
 * @since v1.0
 */
@Getter
@Setter
public class ChangeRecordSubFormMidPojo implements Serializable {

    private static final long serialVersionUID = -684855799245006419L;

    /**
     * 子表单dataId
     */
    private Long dataId;

    /**
     * 某次操作，子表单的attr对应的前后修改内容
     */
    private Map<String, ChangeRecordSubFormColumnPojo> subFieldRecordMap;

    /**
     * @see com.xbongbong.saas.enums.OperateTypeEnum
     * 这边用到0，1，2，3这几个值， 0是默认值
     */
    private Integer operateTag;

    private Long addTime;

    public ChangeRecordSubFormMidPojo(Long dataId, Map<String, ChangeRecordSubFormColumnPojo> subFieldRecordMap, Integer operateTag) {
        this.subFieldRecordMap = subFieldRecordMap;
        this.operateTag = operateTag;
        this.dataId = dataId;
    }
    public ChangeRecordSubFormMidPojo(){};
}
